package cn.com.tianpeidong.restaurantadmin.project.admin.user.vo;

import lombok.Data;

import javax.persistence.Entity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author tianpeidong
 * @version 创建时间: 19-4-9 下午12:55
 */
@Data
public class ModifyPasswd {

    @NotBlank(message = "原密码不能为空")
    @Size(max = 20, min = 8, message = "密码长度必须在8-20位之间")
    private String originPass;
    @NotBlank(message = "新密码不能为空")
    @Size(max = 20, min = 8, message = "密码长度必须在8-20位之间")
    private String newPass;

}
